<?php

use think\Db;


function insetLog($type,$task_id,$msg='',$task_run_log_id=0)
{
    Db::table('task_run_log')->insert([
        'type'=>$type,
        'task_id'=>$task_id,
        'task_run_log_id'=>$task_run_log_id,
        'content'=>$msg
    ]);
}